﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace J01
{
    public class AuthCarInfor
    {
        //自动生成FID
        public string FID { get; set; }
        //订货单的FID
        public string OrderFID { get; set; }
        //授权编号
        public string AuthNumber { get; set; }
        //车牌号
        public string CarNumber { get; set; }
        //计划预装
        public string PreviousPlan { get; set; }
        //下单时间
        public string TicketTime { get; set; }
        //产品
        public string ProductName { get; set; }
        //产品FID
        public string ProductFID { get; set; }
        //单价
        public string Price { get; set; }

        public List<OrderPro> listOrderPro;

        public string DataBaseName { get; set; }
        //账套代码号
        public string DbNum { get; set; }
        //更新标志
        public string TakePass { get; set; }
        //页的总数
        public int TotalPages { get; set; }
        //剩余金额
        public string SurplusMoney { get; set; }
    }

    public class OrderPro
    {
        //订单FID
        public String OrderFID;
        //产品FID
        public String ProductFID;
        //产品价格
        public String ProductPrice;
    }

    public class CarInfor
    {
        //计量单FID
        public string FID { get; set; }
        //订货单的FID
        public string OrderFID { get; set; }
        //车牌号
        public string CarNumber { get; set; }
        //实际净重
        public string FactNetWeight { get; set; }
        //出厂时间
        public string OutTime { get; set; }
        //订单编号
        public string FBillNo { get; set; }
        //供应商
        public string Supplier { get; set; }
        //物料
        public string Material { get; set; }
        //入库数量
        public string Storage { get; set; }
        //出厂计量
        public string OutMetering { get; set; }
        //进场计量
        public string InMetering { get; set; }
        //原发数量
        public string PrimaryNumber { get; set; }
        //过磅编号
        public string WeighNumber { get; set; }
        //页的总数
        public int TotalPages { get; set; }

    }

    public class CertificateCheck
    {
        public string CertificateFlag { get; set; }
        public DateTime LastLoginTime { get; set; }
        public string LoginStatues { get; set; }
        public int LoginTimes { get; set; }
        public string SQLConnection { get; set; }
        public string DeviceID { get; set; }
        public string AllowMobileLogin { get; set; }
    }

    public class ClientOrder
    {
        //客户订单FID
        public string FID { get; set; }
        //登录会返回的结果：用户是否存在以及密码是否正确--1是正确--2是用户名不存在---3是密码不正确
        public string LogInResult { get; set; }
        //客户登录用户名
        public string UserName { get; set; }
        //客户登录密码
        public string Password { get; set; }
        //客户订单编号
        public string FBillNo { get; set; }
        //客户名称
        public string ClientName { get; set; }
        public string ClientFID { get; set; }
        //产品名称
        public string ProductName { get; set; }
        //数量
        public string Ammount { get; set; }
        //单价
        public string Price { get; set; }
        //税率
        public string Rate { get; set; }
        //含税单价
        public string PriceRate { get; set; }
        //含税金额
        public string MoneyRate { get; set; }
        //总金额
        public string TotalMoney { get; set; }
        //勾稽数量
        public string CheckAmmount { get; set; }
        //已用金额
        public string UsedMoney { get; set; }
        //运输单价
        public string TranPrice { get; set; }
        //运费税率
        public string TranRate { get; set; }
        //含税运价
        public string TranRatePrice { get; set; }
        //运输金额
        public string TranMoney { get; set; }
        //袋装标准
        public string BagStander { get; set; }
        //计量方案
        public string MeterSolution { get; set; }
        //结算方式
        public string BalanceWay { get; set; }
        //已发数量
        public string SendNumber { get; set; }
        //销售方式
        public string SalesWay { get; set; }
        //页的总数
        public int TotalPages { get; set; }
    }

    public class CommonResultClass
    {
        public string ErrorCode { get; set; }
        public string ErrorMessage { get; set; }
        public string CommonObject { get; set; }
    }

    public class FunctionParameter
    {
        //订单FID
        public string OrderFID = "";
        //车辆FID
        public string CarFID = "";
        //发货授权FID
        public string AuthCarFID = "";
        //开始时间
        public string StartTime = "";
        //结束时间
        public string EndTime = "";
        //第几页
        public int Page = 0;
        //一页容量
        public int PageSize = 0;
        //车牌号
        public string CarNum = "";
        //预装量
        public string PreviousWeight = "";
        //产品价格
        public string ProductPrice = "";
        //产品名称
        public string ProductName = "";
        //产品FID
        public string ProductFID = "";
        //唯一标识
        public string Stamp = "";
        public string SalesAuthCarInfo = "";

    }

    public class GuestProfile
    {
        public string FID { get; set; }
        //档案编号
        public string FBillNo { get; set; }
        //登录密码
        public string PassWord { get; set; }
        //是否允许手机登录
        public string AllowPhoneLogin { get; set; }
        //客户名称
        public string ClientName { get; set; }
        //建档案时间
        public string BuildTime { get; set; }
    }

    public class MaterialInfor
    {
        //大宗原料的FID
        public string FID { get; set; }
        //大宗原料名称
        public string MaterialName { get; set; }
    }

    public class MoneyClientOrder
    {
        public string FID { get; set; }
        //销售账户编号
        public string FBillNo { get; set; }
        //客户名称
        public string ClientName { get; set; }
        //付款总计
        public string PaymentTotal { get; set; }
        //消费总计
        public string ConsumeTotal { get; set; }
        //当前余额
        public string CurrentBalance { get; set; }
        //下单日期
        public string BuildTime { get; set; }
        //密码方式
        public string PassWordWay { get; set; }
        //结算方式
        public string CaculateWay { get; set; }
        //档案编号
        public string GuestFBillNo { get; set; }
        //产品信息
        public List<ProductInfor> listCarInfor = new List<ProductInfor>();
        //页的总数
        public int TotalPages { get; set; }
    }

    //订单信息
    public class OrderInfor
    {
        //订单号
        public string FBillNo { get; set; }
        //订单FID
        public string FID { get; set; }
        //供应商
        public string Supplier { get; set; }
        //物料
        public string Material { get; set; }
        //含税单价
        public string TaxPrice { get; set; }
        //余量
        public string Allowance { get; set; }
        //质检标准
        public string QualityStandard { get; set; }
        //购进金额
        public string PurchMoney { get; set; }
        //购进数量
        public string PurchAmount { get; set; }
        //总金额
        public string TotalMoney { get; set; }
        //含税金额
        public string TaxMoney { get; set; }
        //税率
        public string TaxRate { get; set; }
        //单价
        public string Price { get; set; }
        //数量
        public string Amount { get; set; }
        //计量方案
        public string MeasurementPlan { get; set; }
        //订单下的车辆信息
        public List<CarInfor> listCarInfor { get; set; }
        //页的总数
        public int TotalPages { get; set; }

    }

    public class ProductInfor
    {
        public string FID { get; set; }
        //产品
        public string ProductName { get; set; }
        //执行政策
        public string PolicyImplementation { get; set; }
        //含税单价
        public string TaxPrice { get; set; }
    }

    public class SalesCarInfor
    {
        //销售计量单FID
        public string FID { get; set; }
        //订货单的FID
        public string OrderFID { get; set; }
        //过磅编号
        public string WeighNumber { get; set; }
        //车牌号
        public string CarNumber { get; set; }
        //计划预装
        public string PreviousPlan { get; set; }
        //进场重量
        public string InWeight { get; set; }
        //出厂重量
        public string OutWeight { get; set; }
        //实际净重
        public string FactNetWeight { get; set; }
        //出库数量
        public string OutStorage { get; set; }
        //称量状态*-1=以发货授权，0=开票,1=已开票,2=已进厂计量,3=计量完成
        public string WeighStatues { get; set; }
        //过磅类型*0=正常过磅,1=退货,2=空车出厂
        public string WeighType { get; set; }
        //开票时间
        public string TicketTime { get; set; }
        //进厂时间
        public string InTime { get; set; }
        //出厂时间
        public string OutTime { get; set; }
        //磁卡
        public string CardNum { get; set; }
        //发货授权编号
        public string OrderNumber { get; set; }
        //客户
        public string ClientName { get; set; }
        //产品
        public string ProductName { get; set; }
        //开票人员
        public string BillingMan { get; set; }
        //进厂司磅
        public string InSiBang { get; set; }
        //出厂司磅
        public string OutSiBang { get; set; }
        //库存
        public string Storage { get; set; }
        //签发员
        public string SignMan { get; set; }
        //销售车辆
        public string SalesCar { get; set; }
        //生产线
        public string ProduceNumber { get; set; }
        //单价
        public string Price { get; set; }
        //剩余金额
        public string SurplusMoney { get; set; }
        //花费金额
        public string ConsumeMoney { get; set; }
        //盈亏
        public string ProfitAndLoss { get; set; }
        //页的总数
        public int TotalPages { get; set; }
    }

    public class SalesOrderInfor
    {
        //销售订单FID
        public string FID { get; set; }
        //订单编号
        public string FBillNo { get; set; }
        //客户
        public string ClientName { get; set; }
        //产品
        public string ProductName { get; set; }
        //数量
        public string Amount { get; set; }
        //含税单价
        public string TaxPrice { get; set; }
        //含税运价
        public string TaxTransatePrice { get; set; }
        //运输金额
        public string TransateMoney { get; set; }
        //含税金额
        public string TaxMoney { get; set; }
        //总金额
        public string TotalMoney { get; set; }
        //下单日期
        public string OrderDate { get; set; }
        //已用数量
        public string UsedNumber { get; set; }
        //已用金额
        public string UsedMoney { get; set; }
        //运输单价
        public string TransatePrice { get; set; }
        //运费税率
        public string TaxTransateRate { get; set; }
        //单价
        public string Price { get; set; }
        //税率
        public string TaxRate { get; set; }
        //袋装标准
        public string BagStandard { get; set; }
        //计量方案
        public string MeasurementPlan { get; set; }
        //余量
        public string Allowance { get; set; }
        //业务员
        public string SalesMan { get; set; }
        //其它单价
        public string OtherPrice { get; set; }
        //其它金额
        public string OtherMoney { get; set; }
        //销售方式
        public string SalesWay { get; set; }
        //结算方式
        public string SettleWay { get; set; }
        //销售地区
        public string SalesArea { get; set; }
        //销售市场
        public string SalesMarket { get; set; }
        //交货方式
        public string DeliveryWay { get; set; }
        //市场类型
        public string MarketType { get; set; }

        //订单下的车辆信息
        public List<SalesCarInfor> listSalesCarInfor { get; set; }

        //页的总数
        public int TotalPages { get; set; }
    }

    public class SetOfBook
    {
        //账套FID
        public string FID { get; set; }
        //账套号
        public string FNumber { get; set; }
        //账套名
        public string FName { get; set; }
        //数据库实体名
        public string DataBaseName { get; set; }
        //数据库IP地址
        public string IP { get; set; }
        //数据库用户名
        public string UserName { get; set; }
        //数据库密码
        public string Password { get; set; }
    }

    public class SupplierInfor
    {
        //供应商FID
        public string FID { get; set; }
        //供应商名称
        public string SupplierName { get; set; }
        //供应商编号
        public string SupplierNumber { get; set; }

    }
}
